#include <iostream>
#include "md5.h"
#include <windows.h>
using namespace std;

#if 0
#include "../../../hac/yuan/src/base/cgi.cpp"
using namespace cppcgi;
#endif

int main()
{
    string md5 = "33fa49e1b3c7338ec99e843a813c806b";
    ifstream ofs("98.txt");
    if (!ofs)
        return 0;

    string line;
    string md5Str1;
    string md5Str2;
    long i = 0;
    while (getline(ofs, line))
    {
        i++;
        md5Str1 = MD5("bocui" + line).toString();
        md5Str2 = MD5("bc" + line).toString();
        cout << i << ":" << line << endl;
        if (md5Str1 != md5 && md5Str2 != md5)
        {
            Sleep(1);
            continue;
        }
        else
        {
            cout << "find key: " << line << endl;
            return 0;
        }
    }
}
